//
//  MyTextFiled.m
//  UI02_UILable_UITextFile_UIButton_UIImageView
//
//  Created by LGC on 16/3/10.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "MyTextFiled.h"

@implementation MyTextFiled

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame placeHolder:(NSString *)placeHolder {
    self = [super initWithFrame:frame];
    if (self) {
        // 占位符
        self.placeholder = placeHolder;
        [self config];
    }
    return self;
}

- (void)config {
  
    // 边框style
    self.borderStyle = UITextBorderStyleRoundedRect;
    
    
    
    // 清除按键
    self.clearButtonMode = UITextFieldViewModeAlways;
    
    // 键盘亮或暗 (夜间模式)
    self.keyboardAppearance = UIKeyboardAppearanceDark;
    
}

@end
